import Vue from 'vue'
import Router from 'vue-router'
import Header from '@/components/Header'
import Find from '@/pages/find/find'
import otherPage from '@/pages/otherPage/otherPage'
import Search from '@/pages/search/search'
import Chat from '@/pages/chat/chat'

Vue.use(Router)
export default new Router({

    routes: [{
            path: '/',
            name: 'find',
            component: Find
        },
        {
            path: '/find',
            name: 'find',
            component: Find
        },
        // {
        // path:'/',  
        // name:'Header',
        // component:Head
        // },    
        {
            path: '/otherPage',
            name: 'otherPage',
            component: otherPage
        },
        {
            path: '/search',
            name: 'search',
            component: Search
        },
        {
            path: '/chat',
            name: 'chat',
            component: Chat
        }
    ]
})